package cn.qingyun.gis.modules.enterprise.controller;


import cn.qingyun.gis.common.Result;
import cn.qingyun.gis.modules.enterprise.service.IHotelService;
import cn.qingyun.gis.modules.enterprise.service.IStreetShopsService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 沿街商铺数据 前端控制器
 * </p>
 *
 * @author skb
 * @since 2024-04-14
 */
@RestController
@RequestMapping("/street-shops")
public class StreetShopsController {

    @Autowired
    private IStreetShopsService streetShopsService;

    @ApiOperation("获取沿街商铺数据")
    @GetMapping("/list")
    public Result<?> getStreetShopsList(@RequestParam String code){
        return Result.okData(streetShopsService.getStreetShopsList(code));
    }

    @ApiOperation("获取沿街商铺详情")
    @GetMapping("/detail")
    public Result<?> getStreetShopsDetails(@RequestParam String id){
        return Result.okData(streetShopsService.getStreetShopsDetails(id));
    }

}
